package com.francisco.ets.modele;

import java.awt.Color;
import java.awt.Graphics;

import com.francisco.ets.util.Labo1Const;

public class Carre extends Forme
{
    private int cote;
	public Carre() 
	{
		//super(Labo1Const.POSITION_INITIAL_X,Labo1Const.POSITION_INITIAL_Y);
		this.setCouleur(Color.blue);
	}

	public Carre(int nseq, int pointDepartX, int pointDepartY,int cote) 
	{
		super(nseq,pointDepartX, pointDepartY);
		this.setCouleur(Color.blue);
		this.cote=cote;
	}

	@Override
	public void drawFigure(Graphics g) 
	{
		g.setColor(this.getCouleur());
		g.drawRect(getPointDepartX(), getPointDepartX(), cote, cote);
	}

}
